﻿function ShowAlbum(albumId,method,ref) {
			var size = getScreenSize();
			$.get(method+"?albumId=" + albumId + "&w=" + size.width + "&h=" + size.height,
			function (data) {
				var fancyData = [];
				for (var i = 0; i < data.length; i++) {
					fancyData.push({ href: ref + data[i].Id + ".jpeg?W=" + size.width + "&h=" + size.height, title: data[i].Name });
				}
				$.fancybox(fancyData,{
		prevEffect		: 'none',
		nextEffect		: 'none',
		helpers		: {
			title	: { type : 'inside' },
			buttons	: {}
		}
	});
			});
		}

		